Skip to content

test(app): Playwright smoke tests#45

Merged
sepehr-safari merged 1 commit into
mainfrom
test/app-playwright-smoke
Jul 8, 2026
Merged

test(app): Playwright smoke tests#45
sepehr-safari merged 1 commit into
mainfrom
test/app-playwright-smoke

Conversation

@sepehr-safari

Copy link
Copy Markdown
Member

Summary

Adds Playwright smoke tests for the landing page and inspector flow.

Closes #30

Changes

Playwright config (apps/web/playwright.config.ts)

  • Chromium browser, auto-start dev server (pnpm dev)
  • 2 retries on CI, HTML reporter
  • 120s timeout for dev server startup

Landing page tests (tests/landing.spec.ts)

  • Page loads with correct title and hero
  • CTA links (Try Inspector → /inspector, View on GitHub → github.com)
  • Features section present (Inspect, Detect, Test, Report)
  • "What it's not" section present
  • Footer with GitHub, npm, Docs, license links

Navigation tests

  • Landing → Inspector navigation
  • Landing → Docs navigation

Inspector tests (tests/inspector.spec.ts)

  • Empty state on first load
  • Load sample scenario → Analyze → timeline appears
  • Load failed-auth scenario → failures detected
  • Click event in timeline → message inspector shows details
  • Export Report button visible after analysis
  • Invalid input → error message (no crash)

CI workflow

  • Added Playwright browser install + E2E test steps after unit tests
  • Increased timeout to 20 minutes

Verification

  • pnpm lint — ✅
  • pnpm typecheck — ✅
  • pnpm test — ✅ (196 unit tests)
  • pnpm build — ✅
  • pnpm format:check — ✅
  • E2E tests will run in CI

@sepehr-safari sepehr-safari added this to the v0.1.0 — Inspector MVP milestone Jul 8, 2026
@sepehr-safari sepehr-safari added type:test Testing improvements package:app apps/web — single Next.js app labels Jul 8, 2026
@sepehr-safari sepehr-safari force-pushed the test/app-playwright-smoke branch from 680e8c4 to 2012c01 Compare July 8, 2026 00:15
- playwright.config.ts with auto-start dev server, chromium
- Landing page tests: page loads, hero, CTA links, features, footer
- Navigation tests: landing to inspector, landing to docs
- Inspector tests: empty state, sample scenario to timeline, failures,
  event click to message inspector, export button, invalid input error
- CI workflow updated: install browsers + run E2E after unit tests

Closes #30
@sepehr-safari sepehr-safari force-pushed the test/app-playwright-smoke branch from 2012c01 to b5c2728 Compare July 8, 2026 00:19
@sepehr-safari sepehr-safari merged commit d726687 into main Jul 8, 2026
1 check passed
@sepehr-safari sepehr-safari deleted the test/app-playwright-smoke branch July 8, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:app apps/web — single Next.js app type:test Testing improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(app): Playwright smoke tests

1 participant